/*
package com.ruben;

import com.spire.doc.Document;
import com.spire.doc.FileFormat;
import com.spire.doc.documents.Paragraph;
import com.spire.doc.fields.TextRange;
import com.spire.doc.formatting.CharacterFormat;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

*/
/**
 * @ClassName: WordDemo
 * @Description: 我还没有写描述
 * @Date: 2021/1/15 0015 20:31
 * *
 * @author: <achao1441470436@gmail.com>
 * @version: 1.0
 * @since: JDK 1.8
 *//*

public class WordDemo {
    private static final String TARGET_PATH = "D:/file/testReport/pdf/" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd-HH-mm-ss", Locale.CHINA)) + ".pdf";

    public static void main(String[] args) {
        Document doc = new Document();
        Paragraph para = doc.addSection().addParagraph();
        TextRange text = para.appendText("阿超-0-{0-[0-(阿超-");
        CharacterFormat format = text.getCharacterFormat();
        format.setFontName("宋体");
        doc.saveToFile(TARGET_PATH, FileFormat.PDF);
    }
}
*/
